package com.itheima.user.service;

import com.itheima.user.dao.UserDao;
import com.itheima.user.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserDao userDao;

    public User findUserById(String id){
       return userDao.selectByPrimaryKey(id);
    }
}
